package cn.tedu._05mvcboot04.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;

@Data
public class UserArticleDTO {
    @Size(min = 3, max = 20, message = "文章标题长度必须在3-20之间")
    @ApiModelProperty(value = "文章标题", required = true)
    private String title;
    @Size(min = 3, max = 500, message = "文章内容必须在3-500之间")
    @ApiModelProperty(value = "文章内容", required = true)
    private String content;
}
